-- GENERATED SPELL FOR [Shattertusk Bull] --


function spell0_28380(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(55196,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28380', 10283, 1)
end

function spell1_28380(pUnit, Event) --@Trample,n/a--
pUnit:FullCastSpellOnTarget(51944,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28380', 647, 1)
end

function Sorts_28380(pUnit, Event)
local choix_sorts_28380 = math.random(0, 1)
if choix_sorts_28380 == 0 then
pUnit:RegisterEvent('spell0_28380', 1, 1)
end
if choix_sorts_28380 == 1 then
pUnit:RegisterEvent('spell1_28380', 1, 1)
end
end

function mob28380_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28380', math.random(1500, 3000), 1)
end

function mob28380_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28380_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28380_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28380, 1, 'mob28380_Action')
RegisterUnitEvent(28380, 2, 'mob28380_Leave')
RegisterUnitEvent(28380, 3, 'mob28380_Kill')
RegisterUnitEvent(28380, 4, 'mob28380_Die')
